/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Emp_duity.java
 *
 * Created on Feb 9, 2012, 7:17:31 PM
 */

package bank_syastem;

/**
 *
 * @author Windows 7
 */
public class Emp_duity extends javax.swing.JFrame {

    /** Creates new form Emp_duity */
    public Emp_duity() {
        initComponents();
        Login l1=new Login();
        txt_log_as.setText(l1.logas);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        lbl_create_acc = new javax.swing.JLabel();
        lbl_update_acc = new javax.swing.JLabel();
        lbl_close_acc = new javax.swing.JLabel();
        lbl_check_bal = new javax.swing.JLabel();
        lbl_transaction = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        txt_log_as = new javax.swing.JLabel();

        jLabel2.setText("jLabel2");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        lbl_create_acc.setForeground(new java.awt.Color(0, 51, 255));
        lbl_create_acc.setText("Create New Account");
        lbl_create_acc.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbl_create_accMouseClicked(evt);
            }
        });

        lbl_update_acc.setForeground(new java.awt.Color(0, 51, 255));
        lbl_update_acc.setText("Update Account");
        lbl_update_acc.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbl_update_accMouseClicked(evt);
            }
        });

        lbl_close_acc.setForeground(new java.awt.Color(0, 51, 255));
        lbl_close_acc.setText("Close Account");
        lbl_close_acc.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbl_close_accMouseClicked(evt);
            }
        });

        lbl_check_bal.setForeground(new java.awt.Color(0, 51, 255));
        lbl_check_bal.setText("Check Balance");
        lbl_check_bal.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbl_check_balMouseClicked(evt);
            }
        });

        lbl_transaction.setForeground(new java.awt.Color(0, 51, 255));
        lbl_transaction.setText("Transaction");
        lbl_transaction.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbl_transactionMouseClicked(evt);
            }
        });

        jLabel1.setText("Log As");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbl_update_acc, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbl_create_acc, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbl_close_acc, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbl_check_bal, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbl_transaction, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(106, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(208, Short.MAX_VALUE)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txt_log_as, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(txt_log_as, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                .addComponent(lbl_create_acc, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(lbl_update_acc, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(lbl_close_acc, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(lbl_check_bal, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(lbl_transaction, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(45, 45, 45))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-372)/2, (screenSize.height-338)/2, 372, 338);
    }// </editor-fold>//GEN-END:initComponents

    private void lbl_create_accMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbl_create_accMouseClicked
       new Customer_registration().setVisible(true);
    }//GEN-LAST:event_lbl_create_accMouseClicked

    private void lbl_update_accMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbl_update_accMouseClicked
       new Update_account().setVisible(true);
    }//GEN-LAST:event_lbl_update_accMouseClicked

    private void lbl_close_accMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbl_close_accMouseClicked
        new Close_account().setVisible(true);
    }//GEN-LAST:event_lbl_close_accMouseClicked

    private void lbl_check_balMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbl_check_balMouseClicked
        new Check_balance().setVisible(true);
    }//GEN-LAST:event_lbl_check_balMouseClicked

    private void lbl_transactionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbl_transactionMouseClicked
        // TODO add your handling code here:
        new Transaction().setVisible(true);
    }//GEN-LAST:event_lbl_transactionMouseClicked

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Emp_duity().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel lbl_check_bal;
    private javax.swing.JLabel lbl_close_acc;
    private javax.swing.JLabel lbl_create_acc;
    private javax.swing.JLabel lbl_transaction;
    private javax.swing.JLabel lbl_update_acc;
    private javax.swing.JLabel txt_log_as;
    // End of variables declaration//GEN-END:variables

}
